{% extends "base.html" %}

{% block content %}

<div class="grid_16">
{% set params as ['current_page': request.page, 'page_size': 2] %}
{% call 'suit.blog.post.list' with params as posts %}

    <div class="comment-list">

<a href="{% url 'blog/post/add' %}">Add new post</a>

{% for post in posts.data %}
    <div class="comment">
        <p><a href="{% url 'blog/post/view' with ['post_id': post.post_id] %}">{{ post.title }}</a></p>
    </div>
{% else %}
    No result
{% endfor %}

{% include 'pager.html' with ['pager': posts.pager, 'router': 'blog/posts'] %}

<pre style="display:none;">
{% debug %}
</pre>

</div> <!-- End .grid_6 -->

{% endblock %}
